package com.smile.api;

import com.smile.commons.page.R;
import com.smile.model.request.FlightTaskPrepareRequest;
import com.smile.model.request.GenerateAirlineFileRequest;
import com.smile.model.request.GeneratePlanarAirlineRequest;
import com.smile.model.response.GenerateAirlineFileResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;

@FeignClient(name = "smile-plus-standalone-device", contextId = "flightTask", path = "/api/device")
public interface FlightTaskApi {

//    @PostMapping("/flightTask/prepare")
//    R<Void> prepare(@RequestBody FlightTaskPrepareRequest flightTaskPrepareRequest);

    @PostMapping("/flightTask/generateAirlineFile")
    R<GenerateAirlineFileResponse> generateAirlineFile(@RequestBody GenerateAirlineFileRequest generateAirlineFileRequest);

    @PostMapping("/flightTask/generatePlanarAirline")
    R<GenerateAirlineFileResponse> generatePlanarAirline(@RequestBody GeneratePlanarAirlineRequest generatePlanarAirlineRequest) throws IOException;

}
